package com.example.light.web.system.dao;

import com.example.light.web.personal.vo.AddressListVO;
import com.example.light.web.system.entity.User;
import com.example.light.web.system.entity.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User checkPhone(@Param("userPhone")String userPhone);

    User selectByEmail(String email);

    List<AddressListVO> selectAddressList();

    //用手机号查用户
    User selectByTel(String Tel);

    List<User> selectUserList();

    /**
     * @author lizhilong
     * @date 2018/9/2 18:46
     * @param ids 已经存在的id
     * @return java.util.List<com.example.light.web.system.entity.User>
     * @description: 查找未存在的用户
     */
    List<User> selectNotChosenUser(Integer ...ids);
}